package com.apiserver.data.idStrategy;

import com.apiserver.data.mybatis.model.EntityTable;

public class  AutoIncrementProvider<M>  implements  IdProvider<M>{

    private AutoIncrementProvider() {};//构造私有，防止开发者实例化类Single，创建出新的single

    //饿汉式：类一加载就创建对象  类成员变量私有，使成员变量不能直接修改这个值,只能通过public 方法访问

    private static AutoIncrementProvider s = new AutoIncrementProvider();
    public static AutoIncrementProvider getSingle() {
        return s;
    }



  @Override
  public boolean toGenerateId(EntityTable entity, M m) {
      return  false;
  }
}
